<template>

  <p>
    L-router v 0.1
  </p>
  <button @click="one">点我加载1啊，兄弟</button>
  <button @click="two">点我加载2啊，兄弟</button>
</template>

<script >
import { defineProps, provide, reactive,inject } from 'vue'
import {router} from "../router"

const state = reactive({ count: 0 })
export default{


  setup(){
    //provide("views")
    const one =()=>{
      router.v.value = router.list[0]
    }
    const two =()=>{
      router.v.value = router.list[1]

    }
    return {one,two}
  }
}
</script>

<style scoped>
a {
  color: #42b983;
}
</style>